package com.qf.anno.web.exhandlers;

import lombok.Data;

@Data
public class BussinessException extends RuntimeException{

    private int code;

    public BussinessException(int code) {
        super();
        this.code = code;
    }

    public BussinessException(String message,int code) {
        super(message);
        this.code = code;
    }

    public BussinessException(String message, Throwable cause,int code) {
        super(message, cause);
        this.code = code;
    }

    public BussinessException(Throwable cause,int code) {
        super(cause);
        this.code = code;
    }

    protected BussinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace,int code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}
